package com.example.java;

import java.nio.charset.StandardCharsets;
import java.util.Arrays;

public class JavaMain {

    static void main() {
        System.out.println(Arrays.toString("0123456789".getBytes(StandardCharsets.UTF_8)));

        System.out.println(Arrays.toString("abcd".getBytes(StandardCharsets.UTF_8)));

        System.out.println(Arrays.toString("ABCD".getBytes(StandardCharsets.UTF_8)));
        Arrays.toString("ABCD".getBytes(StandardCharsets.UTF_8)) ;

        // 中文通常占 3 字节/字符
        System.out.println(Arrays.toString("龙茶清欢".getBytes(StandardCharsets.UTF_8)));

        String json = "{\"name\":\"long\"}";
        System.out.println(Arrays.toString(json.getBytes(StandardCharsets.UTF_8)));
    }

}